package com.da.boot.mapper;

import java.util.List;

import com.da.boot.bean.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author JokerDa.
 * @date 2021/1/27 15:57
 * Description:
 */
@Mapper
public interface StudentMapper {
    Student getStudent(@Param("id") int id);

    @Select("select * from student")
    List<Student> getAllStudent();
}
